import request from '@/utils/request'

// 增加草稿
export const addNewsDraft = ({ news, publisherId}) => {
  return request.post(
    '/news/addNewsDraft',
    { news, publisherId},
    {
      headers: { 'Content-Type': 'application/json' }
    }
  )
}


export const uploadNewsDraft = ({ news, publisherId}) => {
  return request.post(
    '/news/uploadNewsDraft',
    { news, publisherId},
    {
      headers: { 'Content-Type': 'application/json' }
    }
  )
}




// //增加审核中的文章
// export const uploadNewsDraft = ({ new_id,new_title,new_column,new_conten,new_time,new_state,publisher_id,picture_id  }) => {
//   return request.post(
//     '/news/uploadNewsDraft',
//     {new_id,new_title,new_column,new_conten,new_time,new_state,publisher_id,picture_id },
//     {
//       headers: { 'Content-Type': 'application/json' }
//     }
//   )
// }
